home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 418_02 / rasmol2 / makefile < prev    next >
Encoding:
Makefile  |  1994-03-02  |  2.5 KB  |  94 lines

  1. CC = gcc
  2. #CFLAGS_sun4    = -O4
  3. #CFLAGS_sun3    = -O4 -f68881
  4. #CFLAGS_hp9000  = -O +bfpa
  5. #CFLAGS_sequent = -O -f1167
  6. #CFLAGS_mips    = -O2 -Olimit 600
  7. #CFLAGS_gcc2.0  = -O2 -funroll-all-loops
  8. #CFLAGS_esv     = -O2 -Olimit 600 -systype bsd43
  9. #CFLAGS_gcc = -O -fomit-frame-pointer -fstrength-reduce -finline-functions
  10.  
  11. CFLAGS = -g -O2 -finline-functions
  12.  
  13.  
  14. #LIBS_imp = -lm -lXi -lXext -lX11
  15. #LIBS_ext = -lm -lXext -lX11
  16. #LIBS_std = -lm -lX11
  17.  
  18. EXTLIBS = -lm -lXi -lXext -lX11
  19. LIBS = -lm -lXext -lX11
  20.  
  21.  
  22. # LFLAGS = -s
  23. LFLAGS =
  24.  
  25.  
  26.  
  27. # X Windows Release 5 Libraries
  28. # CFLAGS = $(CFLAGS) -I/usr/local/share/X11R5/include
  29. # LFLAGS = $(LFLAGS) -L/usr/local/lib/X11R5
  30.  
  31. # Sun OpenWindows Include Directory
  32. # CFLAGS = $(CFLAGS) -I/usr/openwin/include
  33.  
  34.  
  35.  
  36. SRCS = rasmol.c molecule.c transfor.c command.c abstree.c render.c \
  37.        x11win.c pixutils.c outfile.c
  38.  
  39. OBJS = rasmol.o molecule.o transfor.o command.o abstree.o render.o \
  40.        x11win.o pixutils.o outfile.o
  41.  
  42.  
  43. rasmol:        $(OBJS)
  44.         $(CC) -o rasmol $(LFLAGS) $(OBJS) $(LIBS)
  45.         chmod 755 rasmol
  46.  
  47. rasmol.o:    rasmol.c rasmol.h molecule.h transfor.h command.h \
  48.         abstree.h render.h graphics.h pixutils.h outfile.h
  49.         $(CC) -c $(CFLAGS) rasmol.c
  50.  
  51. molecule.o:    molecule.c molecule.h rasmol.h abstree.h transfor.h render.h
  52.         $(CC) -c $(CFLAGS) molecule.c
  53.  
  54. transfor.o:    transfor.c transfor.h rasmol.h molecule.h command.h \
  55.         render.h graphics.h
  56.         $(CC) -c $(CFLAGS) transfor.c
  57.  
  58. command.o:    command.c command.h rasmol.h tokens.h abstree.h \
  59.         molecule.h transfor.h render.h graphics.h pixutils.h \
  60.                 outfile.h
  61.         $(CC) -c $(CFLAGS) command.c
  62.  
  63. abstree.o:    abstree.c abstree.h rasmol.h molecule.h
  64.         $(CC) -c $(CFLAGS) abstree.c
  65.  
  66. render.o:    render.c render.h rasmol.h molecule.h transfor.h \
  67.         command.h graphics.h pixutils.h
  68.         $(CC) -c $(CFLAGS) render.c
  69.  
  70. x11win.o:    x11win.c graphics.h rasmol.h bitmaps.h command.h
  71.         $(CC) -c $(CFLAGS) x11win.c
  72.  
  73. pixutils.o:    pixutils.c pixutils.h rasmol.h render.h graphics.h
  74.         $(CC) -c $(CFLAGS) pixutils.c
  75.  
  76. outfile.o:    outfile.c outfile.h rasmol.h molecule.h command.h \
  77.         transfor.h render.h graphics.h pixutils.h
  78.         $(CC) -c $(CFLAGS) outfile.c
  79.  
  80.  
  81. esv:        rasmol.c rasmol.h molecule.c molecule.h transfor.c \
  82.                 transfor.h command.c command.h abstree.c abstree.h \
  83.         render.c render.h x11win.c graphics.h pixutils.c \
  84.         pixutils.h outfile.c outfile.h tokens.h
  85.         cc -systype bsd43 -O3 -Olimit 600 -s -o rasmol \
  86.         -I/bsd43/usr/include -I/usr/include $(SRCS) $(EXTLIBS)
  87.         rm *.u
  88.  
  89. cflow:
  90.         cflow -I/usr/local/include $(SRCS)
  91.  
  92. clean:
  93.         rm -f rasmol $(OBJS)
  94.